Skip to main content

DLR Receipts

A callback is an HTTP POST request with a notification made by the Sinch India Conversation API to a URI of your choosing.

Delivery Report Fields

FieldTypeDescription
message_idstringThe ID of the app message
conversation_idstringThe ID of the conversation. Empty if processing_mode is DISPATCH
statusstringThe delivery status
channel_identityobjectThe identity of the contact in the underlying channel
contact_idstringThe ID of the contact. Empty if processing_mode is DISPATCH
reasonobjectError reason if status is FAILED or SWITCHING_CHANNEL
metadatastringMetadata specified in the send request
processing_modestringCurrently only DISPATCH mode is supported

Delivery Status Values

StatusDescription
QUEUED_ON_CHANNELMessage successfully dispatched to the underlying channel
DELIVEREDMessage has reached the end user
READMessage was seen or read by the end user (terminal state)
FAILEDDelivery failed with no more channels to try (terminal state)
SWITCHING_CHANNELDelivery failed but more channels are available to try

Sample DLR — Delivered

{
"app_id": "01H0MFFJFX0YAWYA5XG4D3MRTA",
"accepted_time": "2023-06-13T09:48:57.319Z",
"event_time": "2023-06-13T09:49:00.887336Z",
"project_id": "517ccc41-7c1a-4dfe-af03-dfe804116121",
"message_delivery_report": {
"message_id": "01H2T2H437XD18TAFQJYBKJM4C",
"conversation_id": "",
"status": "DELIVERED",
"channel_identity": {
"channel": "RCS",
"identity": "916284458847",
"app_id": "01H0MFFJFX0YAWYA5XG4D3MRTA"
},
"contact_id": "",
"metadata": "",
"processing_mode": "DISPATCH"
},
"message_metadata": ""
}

Sample DLR — Failed

{
"app_id": "01H0MFFJFX0YAWYA5XG4D3MRTA",
"message_delivery_report": {
"message_id": "01H2T2J9SJBQM8B27A0CMGCNCD",
"status": "FAILED",
"channel_identity": { "channel": "RCS", "identity": "919319304893", "app_id": "01H0MFFJFX0YAWYA5XG4D3MRTA" },
"reason": {
"code": "UNKNOWN",
"description": "The underlying channel reported: Unknown channel error",
"sub_code": "UNSPECIFIED_SUB_CODE"
},
"processing_mode": "DISPATCH"
}
}

RCS Failure Error Messages

Error TypeReason
Invalid TemplateUser is not in a conversation and the template is not approved
Opted Outopted_out
Curfew Hourscurfew_hrs
Message LimitMonthly message limit exceeded
RCS DisabledNumber is RCS disabled
Internal Server ErrorSpecific internal server error
4xx MAAP ErrorsMAAP-specific error